package com.freecloud.framework.repository;

import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;

/**
 * @Author: maomao
 * @Date: 2019-06-19 10:35
 */
@NoRepositoryBean
public interface TreeDao<T,ID> extends BaseDao<T,ID> {

    /**
     * 找到所有子节点
     * @param parentid
     * @return
     */
    List<T> findByParentId(ID parentid);
}
